<?php


define('REG_DATABASE', '%database%'); // Set database name
define('REG_USER', '%user%'); // Set database name
define('REG_PASS', '%pass%'); // Set database name
define('REG_USER_TABLE', '%user_table%'); // set name of users table (not tested besides users)
//define('REG_USERS_PAGES', '%users_pages%'); // set name of users to pages relation table (not tested besides users_pages)
define('REG_ROLE_TABLE', '%role_table%'); // Set table to describe roles, optional since only ids are used
define('REG_DIRECTORY', '%directory%'); // Set to subdirectory where registration stuff is kept 
define('REG_SITE_NAME', '%site_name%'); // Set to site name
define('REG_PAGE_AFTERREG', '%page_afterreg%');  // go to this page after registeration or details changed


define('REG_PI_SUBDIR', '%pi_subdir%'); // include directory for page includes 
define('REG_MAILER_DIR', '%mailer_dir%'); // directory to point to php mailer directory

define('REG_DEFAULTPAGE', '%defaultpage%'); // enter page to go to after login, relative to login.php (in sitereg directory)
define('REG_MSG_BADLOGIN', '%msg_badlogin%');

define('REG_CF_SUBDIR', '%cf_subdir%'); // include directory for page includes 

define('REG_CONNECT_FILE','%connect_file%'); // File that opens mysql connection
define('REG_QUERY_FILE','%query_file%'); // File that defines functions lookup_value() and get_array_query()

// Use this to re-direct login to use ssl for login and registration pages.
define('REG_SSL_PORT', '%ssl_port%'); // SSL port for secure conneciton.  
define('REG_USE_SSL', %use_ssl%);

// Set the message for the email with username or password.  Username or password will be output immidatatly following this mesage
// Set the other mail settings in the mail_settings.php file
define('REG_MSG_USERNAME', '%msg_username%');
define('REG_MSG_PASSWORD', '%msg_password%');
define('REG_ROLE_DEFAULT', 2);  // Default user ID, set to 2 for default user
define('REG_PAGES_TABLE', 'pages'); // Default name of pages table
define('REG_USERS_ROLES', 'users_roles'); // Default name of users_roles table
define('REG_ROLES_PAGES', 'roles_pages'); // Default name of roles_pages table
define('REG_ROLES_TABLE', 'roles'); // Default name of roles_pages table


// Pages for self-registration
// Show all or page name.  Value = access level (role_id)
$reg_DefaultPages['all'] = 1;

?>